//
//  ButtonUtil.h
//  YiJuZhangShou
//
//  Created by URANUS on 16/3/12.
//  Copyright © 2016年 Uranus. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, ButtonEdgeInsetsStyle) {
    ButtonEdgeInsetsStyleTop, // image在上，label在下
    ButtonEdgeInsetsStyleLeft, // image在左，label在右
    ButtonEdgeInsetsStyleBottom, // image在下，label在上
    ButtonEdgeInsetsStyleRight // image在右，label在左
};

typedef enum : NSUInteger {
    ItemPictureTag = 2000,
    ItemLabelTag = 2001,
} ItemButtonTag;

@interface ButtonUtil : NSObject

/**
 *
 *  加载item项（图片在上，标题在下）按钮
 *
 *  @param btn              按钮
 *  @param imageAddress     图片地址
 *  @param title            按钮标题
 *  @param backgroundColor  按钮背景
 *
 */
+(void)loadItemButtonWithButton:(UIButton *)btn
                   withImageAddress:(NSString *)imageAddress
                      withTitle:(NSString *)title
             withBackGroundColor:(UIColor *)backgroundColor
       andButtonEdgeInsetsStyle:(ButtonEdgeInsetsStyle)style;

/**
 *
 *  加载可选择点击的按钮组
 *
 *  @param titles                  按钮组标题数组
 *  @param selectBackgroundColor   选中的背景色
 *  @param unSelectBackgroundColor 未选中的背景色
 *  @param selectTextColor         选中的字体颜色
 *  @param unSelectTextColor       未选中的字体颜色
 *  @param backView                要添加的父view
 */
+(void)loadBooleanSelectButtonGroupWithTitles:(NSArray *)titles withSelectedColor:(UIColor *)selectBackgroundColor withUnSelectedColor:(UIColor *)unSelectBackgroundColor withSelectTextColor:(UIColor *)selectTextColor withUnSelectTextColor:(UIColor *)unSelectTextColor andBackView:(UIView *)backView;

@end
